<template>
	<view class="u-demo">
		<view style="display: flex;">
			<image :src="base+content.cover" style="width: 30%;"></image>
			<view style="padding-left:30rpx ;">
				<view>电影名称：{{content.name}}</view>
				<view>评分：{{content.score}}</view>
				<view>上映时间：{{content.playDate}}</view>
				<view>想看人数：{{content.favoriteNum}}</view>
			</view>
		</view>
		<br>
		<uni-card>
			<uni-rate :value="content.score" ></uni-rate>
		</uni-card>
		<uni-group style="position: fixed;right: 0%;left: 0%;bottom: 0%;">
			<button @click="zhu">返回主页</button>
		</uni-group>
	</view>
</template>

<script>
	import api from 'commer/apiURL.js'
	export default {
		data() {
			return {
				base: api.baseurl,
				content:''
			}
		},
		
		onLoad(optionds) {
			this.getlun(optionds.id)
		},
		methods: {
			zhu(){
				uni.navigateBack({
					
				})
			},
			getlun(id) {
				this.$get(this.base + '/prod-api/api/movie/film/detail/'+id).then((res) => {
					this.content = res.data
				})
			}
		}
	}
</script>

<style>

</style>
